﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="hrEmployeeTrainings" targetNamespace="http://tempuri.org/hrEmployeeTrainings.xsd" xmlns:mstns="http://tempuri.org/hrEmployeeTrainings.xsd" xmlns="http://tempuri.org/hrEmployeeTrainings.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="AKDOAConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="AKDOAConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.AKDOAConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="hrEmployeeTrainingsTableAdapter" GeneratorDataComponentClassName="hrEmployeeTrainingsTableAdapter" Name="hrEmployeeTrainings" UserDataComponentName="hrEmployeeTrainingsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AKDOAConnectionString (Web.config)" DbObjectName="AKDOA.dbo.hrEmployeeTrainings" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[hrEmployeeTrainings] WHERE (([ID] = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[hrEmployeeTrainings] ([ID], [EmployeeID], [TrainingAddress], [BeginDate], [EndDate], [TraniningOrganization], [TraniningCourse], [Certificate], [Summarize], [Improvements], [TrainningModus], [TrainningFee], [TrainningTeahcher]) VALUES (@ID, @EmployeeID, @TrainingAddress, @BeginDate, @EndDate, @TraniningOrganization, @TraniningCourse, @Certificate, @Summarize, @Improvements, @TrainningModus, @TrainningFee, @TrainningTeahcher)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@EmployeeID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="EmployeeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TrainingAddress" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TrainingAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@BeginDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="BeginDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@EndDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="EndDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TraniningOrganization" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TraniningOrganization" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TraniningCourse" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TraniningCourse" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Certificate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Certificate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summarize" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summarize" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Improvements" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Improvements" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TrainningModus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TrainningModus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TrainningFee" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TrainningFee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TrainningTeahcher" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TrainningTeahcher" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, EmployeeID, TrainingAddress, BeginDate, EndDate, TraniningOrganization, TraniningCourse, Certificate, Summarize, Improvements, TrainningModus, TrainningFee, TrainningTeahcher FROM dbo.hrEmployeeTrainings</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[hrEmployeeTrainings] SET [ID] = @ID, [EmployeeID] = @EmployeeID, [TrainingAddress] = @TrainingAddress, [BeginDate] = @BeginDate, [EndDate] = @EndDate, [TraniningOrganization] = @TraniningOrganization, [TraniningCourse] = @TraniningCourse, [Certificate] = @Certificate, [Summarize] = @Summarize, [Improvements] = @Improvements, [TrainningModus] = @TrainningModus, [TrainningFee] = @TrainningFee, [TrainningTeahcher] = @TrainningTeahcher WHERE (([ID] = @Original_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@EmployeeID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="EmployeeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TrainingAddress" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TrainingAddress" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@BeginDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="BeginDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@EndDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="EndDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TraniningOrganization" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TraniningOrganization" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TraniningCourse" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TraniningCourse" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Certificate" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Certificate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summarize" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summarize" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Improvements" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Improvements" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TrainningModus" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TrainningModus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TrainningFee" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TrainningFee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TrainningTeahcher" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TrainningTeahcher" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="EmployeeID" DataSetColumn="EmployeeID" />
              <Mapping SourceColumn="TrainingAddress" DataSetColumn="TrainingAddress" />
              <Mapping SourceColumn="BeginDate" DataSetColumn="BeginDate" />
              <Mapping SourceColumn="EndDate" DataSetColumn="EndDate" />
              <Mapping SourceColumn="TraniningOrganization" DataSetColumn="TraniningOrganization" />
              <Mapping SourceColumn="TraniningCourse" DataSetColumn="TraniningCourse" />
              <Mapping SourceColumn="Certificate" DataSetColumn="Certificate" />
              <Mapping SourceColumn="Summarize" DataSetColumn="Summarize" />
              <Mapping SourceColumn="Improvements" DataSetColumn="Improvements" />
              <Mapping SourceColumn="TrainningModus" DataSetColumn="TrainningModus" />
              <Mapping SourceColumn="TrainningFee" DataSetColumn="TrainningFee" />
              <Mapping SourceColumn="TrainningTeahcher" DataSetColumn="TrainningTeahcher" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="hrEmployeeTrainings" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="hrEmployeeTrainings" msprop:Generator_UserDSName="hrEmployeeTrainings">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="hrEmployeeTrainings" msprop:Generator_TableClassName="hrEmployeeTrainingsDataTable" msprop:Generator_TableVarName="tablehrEmployeeTrainings" msprop:Generator_TablePropName="_hrEmployeeTrainings" msprop:Generator_RowDeletingName="hrEmployeeTrainingsRowDeleting" msprop:Generator_RowChangingName="hrEmployeeTrainingsRowChanging" msprop:Generator_RowEvHandlerName="hrEmployeeTrainingsRowChangeEventHandler" msprop:Generator_RowDeletedName="hrEmployeeTrainingsRowDeleted" msprop:Generator_UserTableName="hrEmployeeTrainings" msprop:Generator_RowChangedName="hrEmployeeTrainingsRowChanged" msprop:Generator_RowEvArgName="hrEmployeeTrainingsRowChangeEvent" msprop:Generator_RowClassName="hrEmployeeTrainingsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:string" />
              <xs:element name="EmployeeID" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnEmployeeID" msprop:Generator_ColumnPropNameInRow="EmployeeID" msprop:Generator_ColumnPropNameInTable="EmployeeIDColumn" msprop:Generator_UserColumnName="EmployeeID" type="xs:string" />
              <xs:element name="TrainingAddress" msprop:Generator_ColumnVarNameInTable="columnTrainingAddress" msprop:Generator_ColumnPropNameInRow="TrainingAddress" msprop:Generator_ColumnPropNameInTable="TrainingAddressColumn" msprop:Generator_UserColumnName="TrainingAddress" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="24" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="BeginDate" msprop:Generator_ColumnVarNameInTable="columnBeginDate" msprop:Generator_ColumnPropNameInRow="BeginDate" msprop:Generator_ColumnPropNameInTable="BeginDateColumn" msprop:Generator_UserColumnName="BeginDate" type="xs:dateTime" />
              <xs:element name="EndDate" msprop:Generator_ColumnVarNameInTable="columnEndDate" msprop:Generator_ColumnPropNameInRow="EndDate" msprop:Generator_ColumnPropNameInTable="EndDateColumn" msprop:Generator_UserColumnName="EndDate" type="xs:dateTime" />
              <xs:element name="TraniningOrganization" msprop:Generator_ColumnVarNameInTable="columnTraniningOrganization" msprop:Generator_ColumnPropNameInRow="TraniningOrganization" msprop:Generator_ColumnPropNameInTable="TraniningOrganizationColumn" msprop:Generator_UserColumnName="TraniningOrganization">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="36" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TraniningCourse" msprop:Generator_ColumnVarNameInTable="columnTraniningCourse" msprop:Generator_ColumnPropNameInRow="TraniningCourse" msprop:Generator_ColumnPropNameInTable="TraniningCourseColumn" msprop:Generator_UserColumnName="TraniningCourse">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Certificate" msprop:Generator_ColumnVarNameInTable="columnCertificate" msprop:Generator_ColumnPropNameInRow="Certificate" msprop:Generator_ColumnPropNameInTable="CertificateColumn" msprop:Generator_UserColumnName="Certificate" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="24" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Summarize" msprop:Generator_ColumnVarNameInTable="columnSummarize" msprop:Generator_ColumnPropNameInRow="Summarize" msprop:Generator_ColumnPropNameInTable="SummarizeColumn" msprop:Generator_UserColumnName="Summarize" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Improvements" msprop:Generator_ColumnVarNameInTable="columnImprovements" msprop:Generator_ColumnPropNameInRow="Improvements" msprop:Generator_ColumnPropNameInTable="ImprovementsColumn" msprop:Generator_UserColumnName="Improvements" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TrainningModus" msprop:Generator_ColumnVarNameInTable="columnTrainningModus" msprop:Generator_ColumnPropNameInRow="TrainningModus" msprop:Generator_ColumnPropNameInTable="TrainningModusColumn" msprop:Generator_UserColumnName="TrainningModus" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TrainningFee" msprop:Generator_ColumnVarNameInTable="columnTrainningFee" msprop:Generator_ColumnPropNameInRow="TrainningFee" msprop:Generator_ColumnPropNameInTable="TrainningFeeColumn" msprop:Generator_UserColumnName="TrainningFee" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TrainningTeahcher" msprop:Generator_ColumnVarNameInTable="columnTrainningTeahcher" msprop:Generator_ColumnPropNameInRow="TrainningTeahcher" msprop:Generator_ColumnPropNameInTable="TrainningTeahcherColumn" msprop:Generator_UserColumnName="TrainningTeahcher" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:hrEmployeeTrainings" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>